package cn.geminis.warehouse.service.basic.entity;

import cn.geminis.lowcode.annotation.*;
import com.alibaba.excel.annotation.ExcelProperty;
import jakarta.persistence.Column;
import lombok.Getter;
import lombok.Setter;

/**
 * 仓库
 * <p>
 * TODO: 仓库容量
 */
@Getter
@Setter
@UuidEntity(idFieldAnnotations = {"com.alibaba.excel.annotation.ExcelIgnore"})
@SoftDeleteEntity(deleteFieldAnnotations = {"com.alibaba.excel.annotation.ExcelIgnore"})
@QueryFilter
@CrudRepository
@CrudController
@ExcelController
public class Warehouse {

    /**
     * 名称
     */
    @Column(nullable = false)
    @ExcelProperty("名称")
    private String name;

    /**
     * 行容量
     */
    @Column(nullable = false)
    @ExcelProperty("行容量")
    private int capabilityX;

    /**
     * 列容量
     */
    @Column(nullable = false)
    @ExcelProperty("列容量")
    private int capabilityY;

    /**
     * 层容量
     */
    @Column(nullable = false)
    @ExcelProperty("层容量")
    private int capabilityZ;

}
